#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

cv = Canvas(root, bg='white')

rt = cv.create_rectangle(10, 10, 110, 110, tags=('r1', 'r2', 'r3'))

cv.pack()

cv.create_rectangle(20, 20, 80, 80, tags=('r3'))

for item in cv.find_withtag('r3'):
    cv.itemconfig(item, outline='blue')

root.mainloop()
